﻿<%-- 
    /***************************************************************************
    Sayfa:  Bir rapor nesnesi için .repx formatında tasarlanmış dosyayı ve 
    diğer ad, sıra numarası grup gibi bilgilerin kaydedilebileceği controldür.

        Tarih           Sürüm       Değişiklik          İşlem
        --------------------------------------------------------------------------
        2013.Kas        1           Mehmet A. ORAKCI  Oluşturuldu.

    ****************************************** mehmetakiforakci@gmail.com ****/
--%>

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportEditControl.ascx.cs" Inherits="RaporProj.ReportEditControl" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<dx:ASPxPanel ID="EditPanel" ClientInstanceName="EditPanel" runat="server">
    <Paddings Padding="15px" />
    <PanelCollection>
        <dx:PanelContent ID="PanelContent1" runat="server">
            <table class="table">
                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Rapor No:" Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldtextcontrol">
                        <dx:ASPxLabel ID="lbReportId" ClientInstanceName="lbReportId" runat="server" Text="#"></dx:ASPxLabel>
                    </td>
                </tr>

                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Kategori:" Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldcontrol">
                        <dx:ASPxComboBox ID="cbCategories" ClientInstanceName="cbCategories" runat="server" Width="300px" ValueType="System.String">
                            <ValidationSettings ValidationGroup="ReportEdit">
                                <RequiredField IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                </tr>
                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Rapor Adı:" Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldcontrol">
                        <dx:ASPxTextBox ID="txReportName" ClientInstanceName="txReportName" runat="server" Width="300px">
                            <ValidationSettings ValidationGroup="ReportEdit">
                                <RequiredField IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Dosya:" Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldtextcontrol">
                        <dx:ASPxLabel ID="lbFileName" ClientInstanceName="lbFileName" runat="server" Text="#"></dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="Yeni Dosya: " Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldcontrol">
                        <dx:ASPxUploadControl ID="upRepxFile" ClientInstanceName="upRepxFile" runat="server" Width="400px"
                            ShowProgressPanel="True" OnFileUploadComplete="upRepxFile_FileUploadComplete"
                            NullText="Dosya seçmek için tıklatın...">
                            <ValidationSettings MaxFileSize="4194304" AllowedFileExtensions=".repx,.exe"></ValidationSettings>
                            <ClientSideEvents
                                TextChanged="Report.FileUploaderTextChanged"
                                FileUploadStart="Report.FileUploadStart"
                                FileUploadComplete="Report.FileUploadComplete"
                                UploadingProgressChanged="Report.UploadingProgressChanged" />
                        </dx:ASPxUploadControl>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <div style="float: right">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="btSaveReport" ClientInstanceName="btSaveReport" runat="server" Text=" Tamam " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorConfirm" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btCancelEdit" ClientInstanceName="btCancelEdit" runat="server" Text=" İptal " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorCancel" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxPanel>

<dx:ASPxPanel ID="DeletePanel" ClientInstanceName="DeletePanel" runat="server">
    <PanelCollection>
        <dx:PanelContent runat="server">
            <table class="table">
                <tr>
                    <td>
                        <div style="padding: 20px;">
                            <dx:ASPxLabel ID="DeleteText" ClientInstanceName="DeleteText" runat="server" Text="99"></dx:ASPxLabel>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="float: right">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="btDelete" runat="server" Text=" Sil " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorConfirm" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btCancelDelete" runat="server" Text=" İptal " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorCancel" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>

                        </div>
                    </td>
                </tr>
            </table>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxPanel>

<dx:ASPxPanel ID="CategoryPanel" ClientInstanceName="CategoryPanel" runat="server">
    <Paddings Padding="15px" />
    <PanelCollection>
        <dx:PanelContent ID="PanelContent2" runat="server">
            <table class="table">
                <tr>
                    <td class="fieldcaption expanded">
                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Kategori Adı:" Wrap="False"></dx:ASPxLabel>
                    </td>
                    <td class="fieldcontrol" colspan="3">
                        <dx:ASPxTextBox ID="txNewCategoryName" ClientInstanceName="txNewCategoryName" runat="server" Width="300px">
                            <ValidationSettings ValidationGroup="CategoryEdit">
                                <RequiredField IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <div style="float: right">
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="ASPxButton1" ClientInstanceName="btSaveReport" runat="server" Text=" Tamam " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorConfirm" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="ASPxButton2" ClientInstanceName="btCancelEdit" runat="server" Text=" İptal " AutoPostBack="false">
                                            <ClientSideEvents Click="Report.EditorCancel" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxPanel>

<dx:ASPxPanel ID="NotifyPanel" ClientInstanceName="NotifyPanel" runat="server" ClientVisible="false">
    <PanelCollection>
        <dx:PanelContent ID="PanelContent3" runat="server">
            <div class="alert-box error">
                <div style="cursor: pointer" onclick="var d = document.getElementById('errorDetail').style; d.display= d.display=='' ? 'none' : '';  ">
                    <span>hata: </span>
                    <dx:ASPxLabel ID="ErrorText" ClientInstanceName="ErrorText" runat="server" Text="">
                    </dx:ASPxLabel>
                </div>
                <div id="errorDetail" style="overflow-x: hidden; overflow-y: auto; height: 120px; display: none; font-size: 9px; color: gray; border-top: 1px solid gray; margin-top: 5px">
                    <dx:ASPxLabel ID="ErrorDetail" ClientInstanceName="ErrorDetail" runat="server" Text=""></dx:ASPxLabel>
                </div>
            </div>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxPanel>

